Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shadow publishing of javaagent instrumentation #3340

Merged
merged 1 commit into from
Jun 17, 2021
Merged

Fix shadow publishing of javaagent instrumentation #3340

merged 1 commit into from
Jun 17, 2021

Conversation

trask
Copy link
Member

@trask trask commented Jun 16, 2021

Previously only the -all artifact was being published:

  10456 Jun 16 11:45 opentelemetry-javaagent-google-http-client-1.19-1.3.0-alpha-SNAPSHOT-all.jar
   1497 Jun 16 11:45 opentelemetry-javaagent-google-http-client-1.19-1.3.0-alpha-SNAPSHOT.pom

I don't completely understand it, but after a bunch of trial and error this change seems to be working.

@trask
Copy link
Member Author

trask commented Jun 16, 2021

Hm, it's still not quite right, opentelemetry-javaagent and opentelemetry-armeria-shaded-for-testing do not publish javadoc or sources artifact..

@trask
Copy link
Member Author

trask commented Jun 17, 2021

ok I reverted and went with small fix, let's see how it goes...

@@ -8,7 +8,7 @@ plugins {
publishing {
publications {
register<MavenPublication>("maven") {
if (tasks.names.contains("shadowJar") && findProperty("noShadowPublish") != "true") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! Another motivation to move this and the other flags to the Java extension to make it typesafe

@trask trask merged commit 7181c49 into open-telemetry:main Jun 17, 2021
@trask trask deleted the fix-shadow-publishing branch June 17, 2021 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants